﻿//string path = "test1";//相对路径
string path = "/test1";//绝对路径
if (Directory.Exists(path))
{
    Console.WriteLine("exists");
}
else
{
    Directory.CreateDirectory(path);
}